package ua.com.globallogic.training.subway;

public class AccumulativeCard extends SubwayCard {

    private AccumulativeCardState state;

    public AccumulativeCard(CardState state) {
        super(state);
        this.state = (AccumulativeCardState)state;
    }

    public void chargeOneTrip() {
        state.chargeOneTrip();
    }

    public double getBalance() {
        return state.getBalance();
    }

    public void addMoney(double amount) {
        state.addMoney(amount);
    }
}
